﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SmallFarmHouse.aspx.cs"
    EnableViewState="false" Inherits="NJL.WebUsers.SmallFarmHouse" %>

<%@ Import Namespace="Royalsoft.Common" %>
<%@ Register Src="Controls/WUCHeader.ascx" TagName="WUCHeader" TagPrefix="uc1" %>
<%@ Register Src="Controls/WUCFooter.ascx" TagName="WUCFooter" TagPrefix="uc2" %>
<%@ Register src="Controls/WUCELPS.ascx" tagname="WUCELPS" tagprefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>农家小院-农家乐网</title>
    <link rel="stylesheet" type="text/css" href="/Styles/base1.css" />
    <script type="text/javascript" language="javascript" src="/Scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript" language="javascript" src="/Scripts/jquery.KinSlideshow-1.1.js"></script>
    <script type="text/javascript" language="javascript">
        function tab(div, css) {
            document.getElementById("hot").style.display = "none";
            document.getElementById("news").style.display = "none";
            document.getElementById("hotcss").className = "";
            document.getElementById("newscss").className = "";
            document.getElementById(css).className = "now";
            document.getElementById(div).style.display = "block";
        }
    </script>
</head>
<body>
    <form id="form1">
    <uc1:WUCHeader ID="WUCHeader1" runat="server" />
    <!--主要内容-->
    <div class="clearfix w1003" id="content">
        <div class="blank cleanFlex">
        </div>
        <!--位置-->
        <div class="place02">
            <p>
                您现在的位置是：<a href="/">首页</a>>><span>农家小院</span>
            </p>
        </div>
        <!--顶部推广-->
        <div class="blank cleanFlex">
        </div>
        <div class="w_730 f_left">
            <!--幻灯片-->
            <div class="box" style="height: 240px; overflow: hidden;">
                <script type="text/javascript">
                    $(function () {
                        $("#KinSlideshow").KinSlideshow({ isHasTitleBar: false, isHasTitleFont: false, moveStyle: "up" });
                    })
                </script>
                <div id="KinSlideshow" style="visibility: hidden;">
                    <%
                        for (int i = 0; i < LIST_FLASH.Count; i++)
                        {
                    %>
                    <a href="<%=LIST_FLASH[i].LINK_TO_URL %>" title="<%=LIST_FLASH[i].NEWS_TITLE %>"
                        target="_blank">
                        <img src="<%=GetImageUrl(LIST_FLASH[i].IMAGE_CODE) %>" alt="<%=LIST_FLASH[i].NEWS_TITLE %>"
                            width="730px" height="240px" /></a>
                    <% 
                        }
                    %>
                </div>
            </div>
            <!--长安区农家乐-->
            <div class="cleanFlex" style="height: 1px; overflow: hidden;">
            </div>
            <!--各区农家乐-->
            <div class="box cleanFlex m_top_10">
                <!--标题-->
                <div class="titleGreen">
                    <h2>
                        <strong>
                            <%=WEBSITE_FOCUS_CITY_NAME %>农家乐</strong><b></b></h2>
                </div>
                <!--内容-->
                <div class="cleanFlex">
                    <!--图片-->
                    <div class="cleanFlex" style="height: auto; width: 710px; margin:0 auto;">
                        <ul class="imglist">
                            <asp:Repeater ID="rptCompany" runat="server">
                                <ItemTemplate>
                                    <li style="width: 155px; height: 133px;"><a target="_blank" href="/shangpu/<%#Eval("ID") %>-index.html">
                                        <img width="147px" height="105px" src="<%#GetImageUrl(Eval("IMAGE_CODE").ToString(),"1") %>"
                                            alt="<%#Eval("COMPANY_NAME") %>" class="picBor" /></a><p>
                                                <a target="_blank" title="<%#Eval("COMPANY_NAME") %>" href="/shangpu/<%#Eval("ID") %>-index.html">
                                                    <%#PageValidate.SqlText(Eval("COMPANY_NAME").ToString(),11) %>
                                                </a>
                                            </p>
                                    </li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                        <div class="cleanFlex" style="height:12px; overflow:hidden;">
                        </div>
                    </div>
                    
                </div>
            </div>
            <div id="pager" runat="server" class="pageBord cleanFlex m_top_10">
            </div>
            <!--游客分享-->
            <div class="cleanFlex blank" style="height: 1px; overflow: hidden;">
            </div>
            <div class="box">
                <div class="titleGreen">
                    <span class="f_right"><a href="/xcgc/">[查看更多]</a></span>
                    <h3>
                        <strong>游客分享</strong></h3>
                </div>
                <div class="cont cleanFlex">
                    <div class="f_left" style="width: 700px;">
                        <%
                            for (int i = 0; i < LIST_NEWS.Count; i++)
                            {
                        %>
                        <dl class="imglist" style="float: left; width: 320px; min-height: 100px; height: 100%;
                            margin-left: 10px">
                            <dt><a target="_blank" href="/wanjia/<%=LIST_NEWS[i].NJL_PERSON_ID %>-youji-<%=LIST_NEWS[i].ID %>.html">
                                <img src="<%=GetImageUrl(LIST_NEWS[i].IMAGE_CODE,"U1") %>" alt="" width="120px" height="90px"
                                    class="picBor" /></a></dt>
                            <dd>
                                <strong class="greenlink font14"><a href="/wanjia/<%=LIST_NEWS[i].NJL_PERSON_ID %>-youji-<%=LIST_NEWS[i].ID %>.html"
                                    target="_blank">
                                    <%if (LIST_NEWS[i].NEWS_TITLE.Length > 10) Response.Write(LIST_NEWS[i].NEWS_TITLE.Substring(0, 10) + "..."); else Response.Write(LIST_NEWS[i].NEWS_TITLE); %></a></strong></dd>
                            <dd>
                                <%if (LIST_NEWS[i].NEWS_SUBJECT_TITLE.Length > 40) Response.Write(LIST_NEWS[i].NEWS_SUBJECT_TITLE.Substring(0, 40) + "..."); else Response.Write(LIST_NEWS[i].NEWS_SUBJECT_TITLE); %>
                                <span class="greenlink"><a target="_blank" href="/wanjia/<%=LIST_NEWS[i].NJL_PERSON_ID %>-youji-<%=LIST_NEWS[i].ID %>.html">
                                    详情</a></span>
                            </dd>
                        </dl>
                        <%
                            }
                        %>
                    </div>
                </div>
                <div class="cleanFlex">
                </div>
            </div>
            <!--美食分享-->
            <div class="cleanFlex blank">
            </div>
            <div class="box">
                <div class="titleGreen">
                    <span class="f_right"><a href="<%if(WEBSITE_FOCUS_CITY_CODE!="") Response.Write("/"+WEBSITE_FOCUS_CITY_NAME_PINYIN); %>/dfts/" target="_blank">[查看更多]</a></span>
                    <h3>
                        <strong>美食分享</strong></h3>
                </div>
                <div class="cont cleanFlex">
                    <ul class="imglist">
                        <%
                            for (int i = 0; i < LIST_LOCAL_COLOR.Count; i++)
                            { 
                        %>
                        <li style="width: 155px; height: 133px;"><a target="_blank" title="<%=LIST_LOCAL_COLOR[i].NEWS_TITLE %>"
                            href="/<%=GetAreaNamePinYin(LIST_LOCAL_COLOR[i].AREA_CODE) %>/dfts/<%=LIST_LOCAL_COLOR[i].ID %>.html">
                            <img src="<%=GetImageUrl(LIST_LOCAL_COLOR[i].IMAGE_CODE,"1") %>" alt="" width="147px"
                                height="105px" class="picBor" />
                        </a>
                            <p>
                                <a target="_blank" title="<%=LIST_LOCAL_COLOR[i].NEWS_TITLE %>" href="/<%=WEBSITE_FOCUS_CITY_NAME_PINYIN %>/dfts/<%=LIST_LOCAL_COLOR[i].ID %>.html">
                                    <%if (LIST_LOCAL_COLOR[i].NEWS_TITLE.Length > 12) Response.Write(LIST_LOCAL_COLOR[i].NEWS_TITLE.Substring(0, 12) + "..."); else Response.Write(LIST_LOCAL_COLOR[i].NEWS_TITLE); %></a>
                            </p>
                        </li>
                        <%
                            }
                        %>
                    </ul>
                    <div class="cleanFlex">
                    </div>
                </div>
            </div>
        </div>
        <!--右侧-->
        <div class="width_260 f_right">
            <!--大热门-->
            <div class="box hotinfo">
                <div class="titleTab">
                    <ul>
                        <li class="now" id="hotcss" onmousemove="tab('hot','hotcss')"><a href="#">大热门</a></li>
                        <li id="newscss" onmousemove="tab('news','newscss')"><a href="#">农家资讯</a></li>
                    </ul>
                </div>
                <div class="cont" id="hot" style="height: 200px;">
                    <p>
                        <% 
                            System.Random random = new Random();
                            for (int i = 0; i < LIST_TAG.Count; i++)
                            {
                                int iRandom = random.Next(0, 9);
                        %>
                        <a target="_blank" href="/SearchList.aspx?key=<%=Server.UrlEncode(LIST_TAG[i].TAG) %>"
                            class="tag<%=iRandom.ToString() %>">
                            <%=LIST_TAG[i].TAG%>
                        </a>
                        <%
                            }
                        %>
                    </p>
                </div>
                <div class="cont" id="news" style="display: none; height: 200px;">
                    <ul class="arrowList">
                        <asp:Repeater runat="server" ID="rptNews">
                            <ItemTemplate>
                                <li><a href="/njxy/njzx/<%#Eval("ID") %>.html" title="<%#Eval("NEWS_TITLE") %>" target="_blank">
                                    <%#PageValidate.SqlText(Eval("NEWS_TITLE").ToString(),18)%></a></li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
            </div>
            <!--吃住玩够-->
      <uc3:WUCELPS ID="WUCELPS1" runat="server" />
          
        </div>
    </div>
    <uc2:WUCFooter ID="WUCFooter1" runat="server" />
    </form>
</body>
</html>
